package com.igeekhome.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmpDto {
    private Integer staffId;

    private String name;

    private Integer loginAccount;

    private String loginPassword;

    private String financePassword;

    private Integer affiliatedNetworkId;
    
    //所属网点名称
    private String affiliatedNetworkName;
    
    //手机号码
    private String cellphone;
    
    //座机号码
    private String telephone;
    
    //身份证号码
    private String IDCard;
    
    //家庭住址
    private String homeAddress;
    
    private String frontIdPhoto;
    
    private String backIdPhoto;
    

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date createDatetime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date updateDatetime;

    private Integer status;
    
    @Override
    public String toString() {
        return "EmpDto{" +
                "staffId=" + staffId +
                ", name='" + name + '\'' +
                ", loginAccount=" + loginAccount +
                ", loginPassword='" + loginPassword + '\'' +
                ", financePassword='" + financePassword + '\'' +
                ", affiliatedNetworkId=" + affiliatedNetworkId +
                ", affiliatedNetworkName='" + affiliatedNetworkName + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", telephone='" + telephone + '\'' +
                ", IDCard='" + IDCard + '\'' +
                ", homeAddress='" + homeAddress + '\'' +
                ", frontIdPhoto='" + frontIdPhoto + '\'' +
                ", backIdPhoto='" + backIdPhoto + '\'' +
                ", createDatetime=" + createDatetime +
                ", updateDatetime=" + updateDatetime +
                ", status=" + status +
                '}';
    }
}